package com.example.chat.model.ro;

import com.beust.jcommander.internal.Lists;
import com.dragonsoftbravo.web.WebQueryParam;
import com.example.chat.model.vo.ValidatedGroup;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;

@Data
public class RoleRO extends WebQueryParam<String> {

    @ApiModelProperty("角色id")
    @NotBlank(groups = ValidatedGroup.Delete.class, message = "角色id不能为空")
    private String roleId;

    @ApiModelProperty("角色名称")
    private String roleName;

    @ApiModelProperty("权限id")
    private List<String> permissionId = Lists.newArrayList();

    @ApiModelProperty("搜索权限id")
    private List<String> permissionSearch = Lists.newArrayList();

    @ApiModelProperty("搜索值")
    private String searchValue;
}
